/*
 * @Author: mhb
 * @Date: 2021-11-23 11:08:06
 * @LastEditTime: 2022-06-17 10:10:45
 * @LastEditors: liyuxiao 1273661256@qq.com
 * @Description: 客服模块路由
 * @FilePath: \cscec-pms-admin-3\src\config\routers\customer.js
 */
import { RouteView } from '@/layouts'

export default {
    path: '/complaint',
    name: 'complaint',
    component: RouteView,
    meta: { title: '客服' },
    children: [
        {
            path: '/complaint/statistics',
            name: '/complaint/statistics',
            meta: { title: '数据统计' },
            redirect: '/complaint/statistics',
            component: RouteView,
            children: [
                {
                    path: '/complaint/statistics',
                    name: 'customer',
                    meta: { title: '数据统计'},
                    component: () => import('@/views/complaint/statistics')
                }
            ]
        },
        {
            path: '/complaint/customerService',
            name: '/complaint/customerService',
            meta: { title: '数据管理' },
            redirect: '/complaint/customerService/list/customer',
            component: RouteView,
            children: [
                {
                    path: '/complaint/customerService/list/customer',
                    name: 'customer',
                    meta: { title: '数据列表'},
                    component: () => import('@/views/complaint/customerService/list/customer')
                }
            ]
        },
        {
            path: '/complaint/Management',
            name: '/complaint/Management',
            meta: { title: '投诉管理' },
            redirect: '/complaint/Management/list',
            component: RouteView,
            children: [
                {
                    path: '/complaint/Management/list',
                    name: '/complaint/Management/list',
                    meta: { title: '投诉列表' },
                    component: () => import('@/views/complaint/Management/list')
                },
                {
                    path: '/complaint/Management/list/add',
                    name: 'AddComplaint',
                    meta: { title: '投诉详情', noTab: true },
                    component: () => import('@/views/complaint/Management/list/add')
                }
            ]
        },
        {
            path: '/complaint/letter',
            name: 'letter',
            meta: { title: '表扬信管理' },
            redirect: '/complaint/Management/list',
            component: RouteView,
            children: [
                {
                    path: '/complaint/letter',
                    name: 'letter',
                    meta: { title: '表扬信管理' },
                    component: () => import('@/views/complaint/letter')
                },
                {
                    path: '/complaint/letter/add',
                    name: 'AddLetter',
                    meta: { title: '表扬信管理', noTab: true },
                    component: () => import('@/views/complaint/letter/add')
                },
            ]
        },
        {
            path: '/complaint/Maintenance',
            name: '/complaint/Maintenance',
            meta: { title: '维保管理' },
            redirect: '/complaint/Maintenance/standing',
            component: RouteView,
            children: [
                {
                    path: '/complaint/Maintenance/standing',
                    name: 'standingList',
                    meta: { title: '维保事项台账' },
                    component: () => import('@/views/complaint/Maintenance/standing')
                },
                {
                    path: '/complaint/Maintenance/standing/add',
                    name: 'AddStanding',
                    meta: { title: '维保事项台账详情', noTab: true },
                    component: () => import('@/views/complaint/Maintenance/standing/add')
                },
                {
                    path: '/complaint/Maintenance/planManage',
                    name: 'MaintenancePlanManage',
                    meta: { title: '维保方案管理' },
                    component: () => import('@/views/complaint/Maintenance/planManage')
                },
                {
                    path: '/complaint/Maintenance/planDetail',
                    name: 'MaintenancePlanDetail',
                    meta: { title: '维保方案信息', noTab: true },
                    component: () => import('@/views/complaint/Maintenance/planManage/edit.vue')
                },
                {
                    path: '/complaint/Maintenance/log',
                    name: 'MaintenanceLog',
                    meta: { title: '维保日志' },
                    component: () => import('@/views/complaint/Maintenance/log')
                },
                {
                    path: '/complaint/Maintenance/log/add',
                    name: 'AddMaintenanceLog',
                    meta: { title: '维保日志', noTab: true },
                    component: () => import('@/views/complaint/Maintenance/log/add')
                },
                {
                    path: '/complaint/Maintenance/satisfaction',
                    name: 'MaintenanceSatisfaction',
                    meta: { title: '维保满意度台账' },
                    component: () => import('@/views/complaint/Maintenance/satisfaction')
                },
                {
                    path: '/complaint/Maintenance/satisfaction/add',
                    name: 'AddMaintenanceSatisfaction',
                    meta: { title: '维保满意度台账', noTab: true },
                    component: () => import('@/views/complaint/Maintenance/satisfaction/add')
                },
                {
                    path: '/complaint/satisfactionsurvey',
                    name: 'satisfactionsurvey',
                    meta: { title: '满意度调查台账' },
                    component: () => import('@/views/complaint/satisfactionsurvey')
                },
                {
                    path: '/complaint/satisfactionsurvey/add',
                    name: 'AddSatisfactionsurvey',
                    meta: { title: '满意度调查台账', noTab: true },
                    component: () => import('@/views/complaint/satisfactionsurvey/add')
                },
                {
                    path: '/complaint/supplier',
                    name: 'Supplier',
                    meta: { title: '供应商品牌库' },
                    component: () => import('@/views/complaint/supplier')
                },
                {
                    path: '/complaint/supplier/add',
                    name: 'AddSupplier',
                    meta: { title: '供应商品牌库', noTab: true },
                    component: () => import('@/views/complaint/supplier/add')
                }
            ]
        }
    ]
}



